package com.xuehu.dao.user;

import com.xuehu.pojo.User;

import java.sql.Connection;
import java.util.List;

public interface UserDao {

    //得到要登录的用户
    public User getLoginUser(Connection connection, String userCode, String userPassword) throws Exception;


    //修改当前用户密码
    public int updatePwd(Connection connection, int id, String password) throws Exception;

    //查询用户总数
    public int getUserCount(Connection connection, String username, int userRole) throws Exception;

    //获取用户列表
    public List<User> getUserList(Connection connection, String userName, int userRole, int currentPageNo, int pageSize) throws Exception;


    public int delUser(Connection connection, Integer userId);
}
